<template>
  <div class="Confirmorder-container">
    <div class="title">填写订单</div>
    <!-- 联系人 -->
    <van-row class="contacts">
      <van-col span="4">wei</van-col>
      <van-col span="18">
        <van-row>111111111111</van-row>
        <van-row>111111111111111</van-row>
      </van-col>
      <van-col span="2"><van-icon name="arrow"/></van-col>
    </van-row>
    <!-- 优惠卷 -->
    <van-row class="coupon">
      <!-- 两端对齐 -->
      <van-row type="flex" justify="space-between">
        <van-col>优惠卷</van-col>
        <van-col><span>1111</span><van-icon name="arrow"/></van-col>
      </van-row>
    </van-row>
    <!-- 留言  建议 -->
    <van-row class="proposal">
      <van-col> 如需要 请输入留言</van-col>
    </van-row>

    <!-- 消费的信息 -->
    <!-- information -->
    <van-row class="information">
      <!-- type="flex" justify="space-between" -->
      <!-- 两端对齐 -->
      <van-row type="flex" justify="space-between">
        <van-col>商品合计</van-col>
        <van-col>￥6666</van-col>
      </van-row>
      <van-row type="flex" justify="space-between">
        <van-col>运费</van-col>
        <van-col>￥0元</van-col>
      </van-row>
      <van-row type="flex" justify="space-between">
        <van-col>优惠卷</van-col>
        <van-col>-￥ 5元</van-col>
      </van-row>
    </van-row>
    <!-- 商品卡片内容 -->
    <van-row class="goods">
      <van-col span="5"><img src="/static/logo.png" alt=""/></van-col>
      <van-col span="15">
        <van-row>标题</van-row>
        <van-row>标准</van-row>
        <van-row>￥29</van-row>
      </van-col>
      <van-col span="2">x99</van-col>
    </van-row>

    <!-- 两端对齐 -->
    <div class="bottom">
      <span>实付: ￥1573</span>
      <span @click="payment()">去付款</span>
    </div>
  </div>
</template>

<script>
export default {
  name: 'YanxuanshangchengConfirmorder',

  data() {
    return {}
  },

  mounted() {
    console.log(this.$route.query)
  },

  methods: {
    // 付款事件
    payment() {
      console.log('付款payment事件')
    }
  }
}
</script>

<style lang="less" scoped>
.Confirmorder-container {
  background-color: #f2f3f3;
  min-height: 66.7rem;
}
// 标题
.title {
  background-color: #fff;

  text-align: center;
}
// 联系人
.contacts {
  display: flex;
  margin-top: 0.5rem;
  height: 7rem;
  background-color: #fff;
  .van-col:nth-child(1) {
    margin-top: 1rem;
  }
  .van-col:nth-child(2) {
    margin-top: 1rem;
  }
  i {
    margin-top: 3rem;
  }
}
// 留言
.proposal {
  margin-top: 1rem;
  height: 3rem;
  line-height: 3rem;
  background-color: #fff;
  > .van-col {
    padding: 0 1rem 0 1rem;
  }
}
// 优惠券
.coupon {
  margin-top: 1rem;
  height: 4rem;
  line-height: 4rem;
  background-color: #fff;
  > .van-row {
    padding: 0 1rem 0 1rem;
  }
}
// 消费信息
.information {
  margin-top: 1rem;
  background-color: #fff;
  > .van-row {
    padding: 0 1rem 0 1rem;
    height: 4rem;
    line-height: 4rem;
    border-bottom: 0.05rem solid #ccc;
  }
}
// <!-- 商品卡片内容 -->
.goods {
  margin-top: 1rem;
  background-color: #fff;
  height: 8rem;
  border-bottom: 0.1rem solid #ccc;
  .van-col {
    height: 100%;
    margin-left: 1rem;
  }
  img {
    width: 100%;
    height: 100%;
  }
}
// 底部
.bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  bottom: 0;
  background-color: #fff;
  height: 5rem;
  line-height: 5rem;
  > span {
    color: #b1262b;
    padding: 0 1rem 0 1rem;
  }
  > span:nth-child(2) {
    text-align: center;
    color: #fff;
    width: 7rem;
    background-color: #b1262b;
  }
}
</style>
